package com.hanlin.beforejavacodesummary.str;

import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: lijing
 * @since: 2025-11-06
 * @description:
 */
@SpringBootTest
public class struse {

    @Test
    public void testStr1(){
        String reason = "阀测套管asf6压力当前值为:0.0(MPa),低于上上限:0.37(MPa)。阀测套管bsf6压力当前值为:0.39(MPa),在正常范围大于0.31(MPa)以外。";
        reason = reason.replaceAll("阀测", "阀侧").replaceAll("asf6", "a的sf6").replaceAll("bsf6", "b的sf6");
        System.out.println(reason);

    }


    @Test
    public void testStr2(){
        String str = "极Ⅰ高端Y/Y-C相";
        str = str.replace("/", "_");
        System.out.println(str);
    }
}
